#ifndef CARD_H_
#define CARD_H_

#include <stdio.h>
#include <string.h>

#define NAME_SIZE 20
#define NIF_SIZE 10

typedef struct Card Card;

struct Card{
    int id;
    char user[NAME_SIZE];
    char nif[NIF_SIZE];
    int n_items;
    float cost;
};

void Card_fill(Card *p_card);
void Card_dump(Card *p_card, char *array);

#endif //CARD_H_
